﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WJP.Domain.Entitys
{
    /// <summary>
    /// 实体类型的接口
    /// </summary>
    /// <typeparam name="TPrimaryKey">实体的主键类型</typeparam>
    public interface IEntity<TPrimaryKey>
    {
        /// <summary>
        /// 此实体的唯一标识符
        /// </summary>
        TPrimaryKey Id { get; set; }

        /// <summary>
        /// 实体的持久化状态
        /// </summary>
        PersistenceStatus PersistenceStatus { get; set; }
    }
}
